﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Documents;
using System.Windows.Controls;
using System.Data;

namespace ReclutamientoCosea
{
    public static class Utilerias
    {
        public static string ConvertRichTextBoxContentsToString(RichTextBox rtb)
        {

            TextRange textRange = new TextRange(rtb.Document.ContentStart,

                rtb.Document.ContentEnd);

            return textRange.Text;

        }

        public static bool IsNumeric(object Expression)
        {
            bool isNum;
            double retNum;

            isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum);
            return isNum;
        }

        //public string ManejoNull(DataRow dr)
        //{
        //    string resultado = "";
            

        //    return resultado;
        //}
    }
}
